package org.mspring.mlog.api.duoshuo.entity;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.Serializable;

import org.apache.commons.io.IOUtils;

/**
 * 
 * @author Gao Youbo
 * @since 2013年9月24日
 */
public class Sync2Local implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 4035874095857706356L;

    public static void main(String[] args) throws FileNotFoundException, IOException {
        String JSON = getJSON();
        System.out.println(JSON);
    }

    public static String getJSON() throws FileNotFoundException, IOException {
        return IOUtils.toString(new FileInputStream(new File("E:/sync2local.json")), "UTF-8");
    }

}
